package com.maistars.spider.repository.security.mapper;

import com.maistars.spider.repository.security.model.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

	int deleteById(Integer userId);

	int insert(UserPO record);

	int insertSelective(UserPO record);

	UserPO selectById(Integer userId);

	UserPO selectUserDetailByUserId(Integer userId);

	UserPO selectByUserName(@Param("userName") String userName);

	UserPO selectByCondition(UserPO record);

	List<UserPO> selectAll();

	int updateByIdSelective(UserPO record);

	int updateById(UserPO record);

}
